package cc.iotkit.data.service;

import cc.iotkit.common.api.PageRequest;
import cc.iotkit.common.api.Paging;
import cc.iotkit.data.mapper.IJPACommData;
import cc.iotkit.data.manager.IAlertConfigData;
import cc.iotkit.data.model.TbAlertConfig;
import cc.iotkit.model.alert.AlertConfig;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Primary
@Service
public class AlertConfigDataImpl implements IAlertConfigData, IJPACommData<AlertConfig, Long, TbAlertConfig> {

    @Resource
    private AlertConfigService alertConfigService;

    @Override
    public AlertConfigService getBaseRepository() {
        return alertConfigService;
    }

    @Override
    public Class getJpaRepositoryClass() {
        return TbAlertConfig.class;
    }

    @Override
    public Class getTClass() {
        return AlertConfig.class;
    }

    @Override
    public Paging<AlertConfig> selectAlertConfigPage(PageRequest<AlertConfig> request) {
        return null;
    }
}
